package com.mszlu.blog.controller;

import com.mszlu.blog.service.VisitornumService;
import com.mszlu.blog.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Package: com.mszlu.blog.controller
 * @ClassName: VisitornumController
 * @Author: 陈威
 * @CreateTime: 2021/9/24 15:41
 * @Description:
 */
@RestController
@RequestMapping("visitornum")
public class VisitornumController {
    @Autowired
    VisitornumService visitornumService;
    @GetMapping
    public Result getReadAndCommentNum(){
        return visitornumService.getReadAndCommentNum();
    }

}